Skip to content

Conversation

@benoitc
Copy link
Owner

@benoitc benoitc commented Jul 24, 2025

Summary

This PR fixes the performance regression reported in #775 where checkout_timeout errors occur under load.

Problem

The timeout in cancel_timer/2 was changed from 0ms to 100ms, causing performance issues when the function is called multiple times on the same timer during error scenarios.

Solution

Restore the original 0ms timeout to eliminate the delay while maintaining proper timer cleanup.

Fixes #775

@benoitc benoitc merged commit bcec552 into master Jul 24, 2025
5 checks passed
@csrl
Copy link

csrl commented Sep 5, 2025

@benoitc any chance you can get this put into an official release soon? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regression in pool connection handling under load

3 participants